package com.ptbuy.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by kongqw on 2015/11/12.
 */
public class ToastUtil {

    private ToastUtil() {
    }

    private static Toast mToast;

    public static void show(Context context, String string) {
        if (null == mToast) {
            mToast = Toast.makeText(context, "", Toast.LENGTH_SHORT);
        }
        mToast.setText(string);
        mToast.show();
    }
}
